﻿{include file = $smarty.const.APPLICATION_PATH|cat:"/application/views/registerheader.html"}
{literal}
<script type="text/javascript">

    $(function(){
        var password = $("input[name=password]");
        var repassword =   $("input[name=repassword]");
        $('.lcl_btn').click(function(){
            if(codeEmpty(password,repassword) === false){
                return false;
            }else{
                document.myForm.submit();
            }
        });
    });


    function codeEmpty(password,repassword){
        var password = password.val();
        var repassword = repassword.val();
        if(password=='') {
            $('.passwordmsg').html("请输入密码！");
            return false;
        }
        if(password.length < 6) {
            $('.passwordmsg').html("密码过于简单！");
            return false;
        }
        else if(password !=repassword){
            $('.repasswordmsg').html("两次密码输入不一致！");
            return false;
        }else{
            $('.passwordmsg').html("");
            $('.repasswordmsg').html("");
            return true;
        }

    }
</script>
<style>.technological_process li{width:200px;}</style>
{/literal}

<div class="clearfix"></div>

<div class="login_wrap">
	<div class="register_wrap">
        <ul class="technological_process">
            <li class="curr"><i>1</i>填写手机号码</li>
            <li class="curr"><i>2</i>验证手机号码</li>
            <li class="curr"><i>3</i>修改密码</li>
            <li><i>4</i>修改成功</li>
        </ul>
        
        <ul class="tp_cp">
            <form method="post" target="_self" id="myForm" name="myForm"  action="/findpwd/updatepasswd">
                <input type="hidden" name="codetime" value="{$codetime}">
                <input type="hidden" name="moblie" value="{$moblie}">
            <li><span>　　密码：</span><input class="lcl_text" name="password" type="password"/><span class="passwordmsg orange pl10"></span></li>
            <li><span>确认密码：</span><input class="lcl_text" name="repassword" type="password"/><span class="repasswordmsg orange pl10"></span></li>
            <li class="tp_cp_server"><input class="lcl_btn" type="button" value="修改密码"/></li>
            </form>
        </ul>
        
    </div>
</div>

{include file = $smarty.const.APPLICATION_PATH|cat:"/application/views/registerfooter.html"}
